package m.meiweitech.com.rocket.entities

/**
 * @author WEN
 * @Description: 权限申请的实体类
 * @date 2021/6/10 21:55
 */
data class PermissionRequestEntity(
        val key: String,
        val showMsg:String,
        val action:Int,
        val permissions: Array<String>,
        val any: Any? = null
) {

    override fun equals(other: Any?): Boolean {
        if (this === other) return true
        if (javaClass != other?.javaClass) return false

        other as PermissionRequestEntity

        if (key != other.key) return false
        if (showMsg != other.showMsg) return false
        if (!permissions.contentEquals(other.permissions)) return false

        return true
    }

    override fun hashCode(): Int {
        var result = key.hashCode()
        result = 31 * result + showMsg.hashCode()
        result = 31 * result + permissions.contentHashCode()
        return result
    }
}

class RefreshPrintNewOrderFragment